package org.moonshiner.controller.comparator;

import java.util.Comparator;

import org.moonshiner.model.MySvnLogEntry;

public class CommitHistoryComparator implements Comparator<MySvnLogEntry> {

	@Override
	public int compare(MySvnLogEntry o1, MySvnLogEntry o2) {
		int result = 0;
		if (o1.getRevision() > o2.getRevision()) {
			result = -1;
		} else if (o1.getRevision() < o2.getRevision()) {
			result = 1;
		}
		return result;
	}

}
